package com.dianmi.seckill.common.utils;

import org.apache.commons.lang.RandomStringUtils;

/**
 * @author xieqiaofu
 * @date 2020/9/28
 */
public class RandomUtils {

    private static final char[] numberArr = "0123456789".toCharArray();

    private static final char[] charArr = "0123456789abcdefghijklmnopqrstuvwxyz".toCharArray();

    public static String getRandomString(int count) {
        return RandomStringUtils.random(count, charArr);
    }

    public static String getRandomNumber(int count) {
        return RandomStringUtils.random(count, numberArr);
    }
}
